//
//  ReceiptTableViewCell.m
//  联付商圈
//
//  Created by apple on 17/7/19.
//  Copyright © 2017年 lianfu. All rights reserved.
//

#import "ReceiptTableViewCell.h"

@implementation ReceiptTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.lineView = [[UIView alloc] init];
        [self.contentView addSubview:_lineView];
        
        self.timeImageView = [[UIImageView alloc] init];
        [self.contentView addSubview:_timeImageView];

        
        self.topLabel = [[UILabel alloc] init];
        self.topLabel.font = [UIFont systemFontOfSize:20 * FONTSIZE];
        [self.contentView addSubview:_topLabel];
        [self.topLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.mas_offset(UIEdgeInsetsMake(15 * FONTSIZE, 80 * FONTSIZE, 45 * FONTSIZE, 0));
        }];
        
        self.bottomLabel = [[UILabel alloc] init];
        self.bottomLabel.font = self.topLabel.font;
        self.bottomLabel.textColor = [UIColor lightGrayColor];
        [self.contentView addSubview:_bottomLabel];
        [self.bottomLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.topLabel.mas_bottom).offset(0);
            make.left.equalTo(self.contentView.mas_left).offset(80 * FONTSIZE);
            make.right.equalTo(self.contentView.mas_right).offset(0);
            make.height.mas_equalTo(30 * FONTSIZE);
        }];
    }
    return self;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
